import Vue from 'vue';
import Vuex from 'vuex';
import VuexPersistence from 'vuex-persistedstate'
import file from './modules/file';
import dag from './modules/dag';
import dagStore from './modules/dagStore';
import menuStore from './modules/menu';
import taskStore from './modules/task';
import gameTaskStore from './modules/gameTask';

Vue.use(Vuex);

const store = new Vuex.Store({
    modules: {
        file,
        dag,
        dagStore,
        menuStore,
        taskStore,
        gameTaskStore
    },
    plugins: [VuexPersistence()],
});

export default store;
